package operation.observer.objs;

import operation.observer.abs.Observer;

public class ScreenB extends Observer {
    public ScreenB(String name) {
        super(name);
    }

    @Override
    public void update(float temperature, float humidity) {
        this.humidity = humidity;
        this.temperature = temperature;
        display();
    }
}
